package hexin.bean;

import org.springframework.stereotype.Component;

@Component
public class Dept {
    private Integer deptno;
    private String dname;

    public Integer getDeptno() {
        return deptno;
    }

    public void setDeptno(Integer deptno) {
        this.deptno = deptno;
    }

    public String getDname() {
        return dname;
    }

    public void setDname(String dname) {
        this.dname = dname;
    }

    @Override
    public String toString() {
        return "部门编号:" + this.deptno + ",名称:" + this.dname;
    }
}
